package cn.neusoft.mapper;

import cn.neusoft.domain.Commodity_Warehouse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface Commodity_WarehouseMapper {
    Long GetWarehouseStock(@Param("warehouse_id") Long warehouse_id);

    Commodity_Warehouse getCommodityWarehouse(@Param("commodity_id") String commodity_id,@Param("warehouse_id") Long warehouse_id);

    int updateCommodityWarehouse(Commodity_Warehouse commodityWarehouse);

    void addCommodityWarehouse(Commodity_Warehouse commodityWarehouse);

    int deleteCommodityWarehouse(@Param("commodity_id") String commodity_id,@Param("warehouse_id") Long warehouse_id);


}
